<?php
/**
 * Created by PhpStorm.
 * User: 沁塵
 * Date: 2019/4/20
 * Time: 19:57
 */

namespace app\api\controller\ai;

use app\lib\doubao\Doubao;
use think\Request;


class Ai
{

    public function teaseapart(Request $request)
    {
        $params = $request->post();
        $num = $params['num'];
        $text = $params['text'];

        $res = (new Doubao())->teaseapart($text,$num);

        return writeJson(200, $res, '获取新的描述');
    }

}